package com.max.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class TimeSlot {

    /*id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  `room_id` int(11) DEFAULT NULL COMMENT '会议室ID',
  `use_date` date DEFAULT NULL COMMENT '日期',
  `time_num` int(11) DEFAULT NULL COMMENT '时间段编号（0-23）',
  `room_state` tinyint(1) DEFAULT '0' COMMENT '会议室状态（0不可用）',
  `create_time` datetime DEF*/

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long roomId;

    private String useDate;

    private Integer timeNum;

    private Integer roomState;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getRoomId() {
        return roomId;
    }

    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    public Integer getTimeNum() {
        return timeNum;
    }

    public void setTimeNum(Integer timeNum) {
        this.timeNum = timeNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUseDate() {
        return useDate;
    }

    public void setUseDate(String useDate) {
        this.useDate = useDate;
    }

    public Integer getRoomState() {
        return roomState;
    }

    public void setRoomState(Integer roomState) {
        this.roomState = roomState;
    }
}
